<?php

class m110708_144205_add_stamp_to_attachment extends CDbMigration
{
	public function safeUp()
	{
		$this->addColumn('dycrm_attachment_file', 'createUserId', 'int');
		$this->addColumn('dycrm_attachment_file', 'uploadDate', 'date');
		$this->update('dycrm_attachment_file', array('createUserId'=>1,'uploadDate'=>'2000-01-01'));
	}

	public function safeDown()
	{
		$this->dropColumn('dycrm_attachment_file', 'createUserId');
		$this->dropColumn('dycrm_attachment_file', 'uploadDate');
	}
}